// 常量路由
export const constantRoute = [
  {
    path: '/',
    redirect: '/home',
    children: [
      {
        path: '/home',
        component: () => import('@/views/Home/index.vue'),
        name: 'home',
        meta: {
          title: '首页',
          hidden: true,
          icon: '',
        },
      },
    ],
  },
  {
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    name: 'login',
    meta: {
      title: '登录页',
      hidden: true,
      icon: '',
    },
  },
  {
    path: '/register',
    component: () => import('@/views/register/index.vue'),
    name: 'register',
    meta: {
      title: '注册页',
      hidden: true,
      icon: '',
    },
  },
  {
    path: '/platform',
    component: () => import('@/Layout/index.vue'),
    name: 'layout',
    redirect: '/platform/pearlRiverDelta',
    icon: 'kongjiantu',
    children: [
      {
        path: '/platform/pearlRiverDelta',
        component: () => import('@/views/PrdImg/index.vue'),
        name: 'pearlRiverDelta',
        meta: {
          title: '珠三角空间一张图',
          icon: '',
          hidden: true,
        },
      },
    ],
  },
  {
    path: '/platform/analyze',
    component: () => import('@/Layout/index.vue'),
    name: 'analyze1',
    meta: {
      title: '碳排放数据分析评价',
      icon: 'fenxipingjia',
    },
    children: [
      {
        path: '/platform/analyze',
        component: () => import('@/views/Analyze/index.vue'),
        name: 'analyze',
        meta: {
          title: '碳排放数据分析评价',
          icon: 'fenxipingjia',
        },
      },
    ],
  },
  {
    path: '/result',
    component: () => import('@/Layout/index.vue'),
    name: 'result',
    meta: {
      title: '计算与规划成果审查与管理',
      meta: 'gouxuan',
      icon: 'gouxuan',
    },
    redirect: '/result/reportResult',
    children: [
      {
        path: '/result/reportResult',
        component: () => import('@/views/ReportResult/index.vue'),
        name: 'reportResult',
        meta: {
          title: '成果上报',
          icon: '',
        },
      },
      {
        path: '/result/reviewResult',
        component: () => import('@/views/ReviewResult/index.vue'),
        name: 'reviewResult',
        meta: {
          title: '成果审查',
          icon: '',
        },
      },
      {
        path: '/result/putResult',
        name: 'putResult',
        component: () => import('@/views/PutResult/index.vue'),
        meta: {
          title: '成果入库',
          icon: '',
        },
      },
      {
        path: '/result/manageResult',
        name: 'manageResult',
        component: () => import('@/views/ManageResult/index.vue'),
        meta: {
          title: '成果管理',
          icon: '',
        },
      },
    ],
  },
  {
    path: '/monitor',
    component: () => import('@/Layout/index.vue'),
    name: 'monitor',
    meta: {
      title: '碳排放环境规划监测评估预警',
      icon: 'pingguyvjing',
    },
    redirect: '/monitor/dynamic',
    children: [
      {
        path: '/monitor/dynamic',
        component: () => import('@/views/Dynamic/index.vue'),
        name: 'dynamic',
        meta: {
          title: '动态监测',
          icon: '',
        },
      },
      {
        path: '/monitor/warning',
        component: () => import('@/views/Warning/index.vue'),
        name: 'warning',
        meta: {
          title: '及时预警',
          icon: '',
        },
      },
      // {
      //   path: '/monitor/assess',
      //   component: () => import('@/views/Assess/index.vue'),
      //   name: 'assessregular',
      //   meta: {
      //     title: '定期评估',
      //     icon: '',
      //     hidden: true,
      //   },
      //   children: [
      //     {
      //       path: '/monitor/assess',
      //       component: () => import('@/views/Assess/index.vue'),
      //       name: 'assess',
      //       meta: {
      //         title: '体检评估',
      //         icon: '',
      //         hidden: true,
      //       },
      //     },
      //     {
      //       path: '/monitor/report',
      //       component: () => import('@/views/Report/index.vue'),
      //       name: 'report',
      //       meta: {
      //         title: '报告管理',
      //         icon: '',
      //         hidden: true,
      //       },
      //     },
      //   ],
      // },
      // @/views/Warning/index.vue
    ],
  },
  {
    path: '/resource',
    component: () => import('@/Layout/index.vue'),
    name: 'resource1',
    meta: {
      title: '资源环境承载力监测预警',
      icon: 'chengzailiyvjing',
    },
    children: [
      {
        path: '/resource',
        component: () => import('@/views/Resource/index.vue'),
        name: 'resource',
        meta: {
          title: '资源环境承载力监测预警',
          icon: 'chengzailiyvjing',
          hidden: true,
        },
      },
    ],
  },
  {
    path: '/model',
    component: () => import('@/Layout/index.vue'),
    name: 'model1',
    meta: {
      title: '指标模型管理',
      icon: 'zhibiaomoxingguanli',
    },
    children: [
      {
        path: '/model',
        component: () => import('@/views/Model/index.vue'),
        name: 'model',
        meta: {
          title: '指标模型管理',
          icon: 'zhibiaomoxingguanli',
          hidden: true,
        },
      },
    ],
  },
  {
    path: '/modelMan',
    component: () => import('@/Layout/index.vue'),
    name: 'modelMan1',
    meta: {
      title: '用户',
      icon: 'zhibiaomoxing',
    },
    children: [
      {
        path: '/modelMan',
        component: () => import('@/views/ModelMan/index.vue'),
        name: 'modelMan',
        meta: {
          title: '用户',
          icon: 'zhibiaomoxing',
        },
      },
    ],
  },
  {
    path: '/404',
    component: () => import('@/views/404/index.vue'),
    name: '404',
    meta: {
      title: '404',
      hidden: true,
      icon: '',
    },
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any',
    meta: {
      title: '404',
      hidden: true,
      icon: '',
    },
  },
]
